
#ifndef _THREAD_H_
#define _THREAD_H_

#include "config.h"

int mutex_init(mutex_t *mutex);
int mutex_destroy(mutex_t *mutex);

int mutex_lock(mutex_t *mutex);
int mutex_trylock(mutex_t *mutex);
int mutex_unlock(mutex_t *mutex);

/*
int thread_create(thread_t *thread, thread_fn_t pfn);
int thread_destroy(thread_t *thread);

int ssem_init(ssem_t *sem);
int ssem_post(ssem_t *sem);
int ssem_wait(ssem_t *sem);
int ssem_destroy(ssem_t *sem);
*/

#endif /* _THREAD_H_ */
